<html lang="zh-cn">{include file="index/meta" /}
    
    <body class="body">
        <div>
            <div class="common-layout min-w-[1200px]">
                <section class="el-container w-100 h-screen">
                    <!--侧边栏开始-->
                    {include file="index/main" /}
                    <!--侧边栏结束-->
                    <section class="el-container is-vertical">
                        <!--顶部-->
                        {include file="index/header" /}
                        <!--顶部结束-->
                        <main class="el-main main-wrap h-full p-0">
                            <div class="el-scrollbar">
                                <div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default">
                                    <div class="el-scrollbar__view" style="">
                                        <div class="p-[10px]">
                                            <div class="main-container">
                                              <div class="el-card is-never-shadow box-card !border-none">
                                                    <div class="el-card__body" style="">
                                                        <div class="flex justify-between items-center">
                                                            <span class="text-[20px]">{:getmenuname($Request.controller)}</span>
                                                            <button onclick="open_full('添加内容','{:url('add')}')" class="el-button el-button--primary w-[100px]"  type="submit">添加内容</button>
                                                            </div>
                                                         <button onclick="attribute_operation('移动分类','{:url('remove')}')" class="el-button el-button--primary w-[100px] mt-3"  type="submit">移动分类</button>   
                                                         <button onclick="attribute_operation('复制内容','{:url('copy')}')" class="el-button el-button--success w-[100px] mt-3"  type="submit">复制内容</button> 
                                                         <button onclick="attribute_operation('属性变更','{:url('operation')}')" class="el-button el-button--info w-[100px] mt-3"  type="submit">属性变更</button>
                                                         <button onclick="attribute_operation('状态变更','{:url('status_adopt')}')" class="el-button el-button--warning w-[100px] mt-3"  type="submit">状态变更</button>
                                                         <button onclick="attribute_operation('推送百度','{:url('baidu_push')}')" class="el-button el-button--success w-[100px] mt-3"  type="submit">推送百度</button> 
                                                         <button onclick="attribute_operation('推送百度','{:url('dels')}')" class="el-button el-button--danger w-[100px] mt-3"  type="submit">批量删除</button>
                                                        <div class="mt-[20px]">
                                                            <div class="el-table--fit  el-table ">
                                                                <div class="el-table__inner-wrapper">
                                                                    <div class="el-table__header-wrapper">
                                                                        <table class="el-table__header">
                                                                            <thead>
                                                                                <tr class="text-c">
                                                                                <th width="45"><input class="form-check-input" type="checkbox" onclick="cz(this)" /></th>
                                                                                <th width="320">标题</th>
                                                                                <th width="80">内容分类</th>
                                                                                <th width="65">点击量 </th>
                                                                                <th width="120">发布</th>
                                                                                <th width="135">更新时间</th>
                                                                                <th width="50">状态</th>
                                                                                <th width="50">推送</th>
                                                                                <th width="100">管理操作</th></tr>
                                                                            </thead>
                                                                            <tbody>
                                                                                 {volist name='list' id='data'}
                                                                                <tr class="text-d">
                                                                                    <td><input class="form-check-input" name="fx[]" type="checkbox" value="{$data.id}"></td>
                                                                                    <td class="text-l">{:str_cut($data.title,130)}
                                                                             {if strpos($data.flag, '1')!== false}<span class="el-tag">顶</span>{/if}
                                                                             {if strpos($data.flag, '2')!== false}<span class="el-tag">头</span>{/if}
                                                                             {if strpos($data.flag, '3')!== false}<span class="el-tag">特</span>{/if}
                                                                             {if strpos($data.flag, '4')!== false}<span class="el-tag">推</span>{/if}
                                                                             {if strpos($data.flag, '5')!== false}<span class="el-tag">热</span>{/if}
                                                                             {if strpos($data.flag, '6')!== false}<span class="el-tag">幻</span>{/if}
                                                                                                </td>
                                                                                                <td>{:get_categoryinfo($data.catid,'catname')}</td>
                                                                                                <td>{$data.click}</td>
                                                                                                <td>{$data.nickname}</td>
                                                                                                <td>{:date("Y-m-d H:i:s",$data.inputtime)}</td>
                                                                                                <td>
                                                                             {if $data.status==1}<span class="el-tag">正常</span>
                                                                             {elseif $data.status==2}<span class="el-tag el-tag--danger">草稿</span>
                                                                             {elseif !$data.status}<span class="el-tag">草稿</span>
                                                                             {elseif $data.status==3}<span class="el-tag el-tag--danger">拒绝</span>{/if}</td>
                                                                           <td>{if $data.is_push}<span class="el-tag">已推送</span>{else}<span class="el-tag el-tag--danger">未推送</span>{/if}</td>
                                                                           
                                                                                                <td>
                                                                             <button onclick="open_full('修改内容','{:url('edit',['id'=>$data.id])}')"  type="button" class="el-button--mini el-button el-button--primary">编辑</button>
                                                                            <button onclick="post_del(this,'{:url('del',['id'=>$data.id])}','确定要删除吗？')"  type="button" class="el-button--mini el-button el-button--danger ">删除</button>
                                                                             </td>
                                                                                   </tr>
                                                                                {/volist}
                                                                            </tbody>
                                                                        </table>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                              
                                            </div>
                                           
                                        </div>
                                       {$list|raw}
                                    </div>
                                </div>
                            </div>
                        </main>
                    </section>
                </section>
            </div>
        </div>

        {include file="index/footer" /}
        </body>

</html>